package com.ruoyi.deal.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.deal.domain.CcsReceiveLocation;
import com.ruoyi.deal.vo.mobile.ReceiveLocationVO;

/**
 * 收货地址Mapper接口
 *
 * @author ruoyi
 * @date 2024-10-17
 */
public interface CcsReceiveLocationMapper extends BaseMapper<CcsReceiveLocation>
{

    /**
     * 根据用户id查询收货地址
     * @param userId 用户id
     * @return list
     */
    List<ReceiveLocationVO> selectReceiveLocationsVOByUserId(Long userId);

    /**
     * 查询收货地址
     *
     * @param id 收货地址主键
     * @return 收货地址
     */
    public CcsReceiveLocation selectCcsReceiveLocationById(Long id);

    /**
     * 查询收货地址列表
     *
     * @param ccsReceiveLocation 收货地址
     * @return 收货地址集合
     */
    public List<CcsReceiveLocation> selectCcsReceiveLocationList(CcsReceiveLocation ccsReceiveLocation);

    /**
     * 新增收货地址
     *
     * @param ccsReceiveLocation 收货地址
     * @return 结果
     */
    public int insertCcsReceiveLocation(CcsReceiveLocation ccsReceiveLocation);

    /**
     * 修改收货地址
     *
     * @param ccsReceiveLocation 收货地址
     * @return 结果
     */
    public int updateCcsReceiveLocation(CcsReceiveLocation ccsReceiveLocation);

    /**
     * 删除收货地址
     *
     * @param id 收货地址主键
     * @return 结果
     */
    public int deleteCcsReceiveLocationById(Long id);

    /**
     * 批量删除收货地址
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCcsReceiveLocationByIds(Long[] ids);
}
